#! /bin/bash

date=`date`
echo "$date"
printf "yes or no:\t"
read YES_OR_NO
if [ "$YES_OR_NO" = "yes" ];then
	echo "Good morning!"
	var=1
	if :;then 			# :表示条件为true
		if [ "$var" = 10 ];then
			echo "break 0"  #貌似不能为空语句
		else
			let var++
		fi
	fi
	printf "var==%d\n" $var
elif [ "$YES_OR_NO" = "no" ];then
	echo "Good evening!"
else 
	echo "sorry"
	return  1
fi
exit 0
